package ${package}.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * <p>缓存配置</p>
 *
 * @author Lionel Lee
 * @version 1.0: CacheProperties.java
 * @date 2021/5/8 8:26 下午
 */
@ConfigurationProperties(prefix = "cache")
@Component
@Data
public class CacheProperties implements Serializable {
    private static final long serialVersionUID = 4250875291554472034L;
    /**
     * 默认-过期时间(30天)
     */
    private Integer           defaultExpireDays;

    /**
     * 最大-过期时间(180天)
     */
    private Integer           maxExpireDays;

    /**
     * 最小-过期时间(7天)
     */
    private Integer           minExpireDays;

}
